package com.app.biz.domain.formal;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.app.common.annotation.Excel;
import com.app.common.core.domain.BaseEntity;

import javax.validation.constraints.NotBlank;

/**
 * 每天耗电量对象 biz_daily_power_consumption
 *
 * @author ruoyi
 * @date 2024-01-22
 */
public class BizDailyPowerConsumption extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String baseId;

    /** 电量 */
    @Excel(name = "电量")
    private String dailyPowerConsumption;

    /** 日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date dayFlag;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date baseCreateTime;

    /** 创建人 */
    @Excel(name = "创建人")
    private String baseCreateBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date baseUpdateTime;

    /** 更新人 */
    @Excel(name = "更新人")
    private String baseUpdateBy;

    /** 外键 */
    @Excel(name = "外键")
    private String pkId;

    public void setBaseId(String baseId)
    {
        this.baseId = baseId;
    }

    public String getBaseId()
    {
        return baseId;
    }
    public void setDailyPowerConsumption(String dailyPowerConsumption)
    {
        this.dailyPowerConsumption = dailyPowerConsumption;
    }

    public String getDailyPowerConsumption()
    {
        return dailyPowerConsumption;
    }
    public void setDayFlag(Date dayFlag)
    {
        this.dayFlag = dayFlag;
    }

    public Date getDayFlag()
    {
        return dayFlag;
    }

    public Date getBaseCreateTime() {
        return baseCreateTime;
    }

    public void setBaseCreateTime(Date baseCreateTime) {
        this.baseCreateTime = baseCreateTime;
    }

    public void setBaseCreateBy(String baseCreateBy)
    {
        this.baseCreateBy = baseCreateBy;
    }

    public String getBaseCreateBy()
    {
        return baseCreateBy;
    }
    public void setBaseUpdateTime(Date baseUpdateTime)
    {
        this.baseUpdateTime = baseUpdateTime;
    }

    public Date getBaseUpdateTime()
    {
        return baseUpdateTime;
    }
    public void setBaseUpdateBy(String baseUpdateBy)
    {
        this.baseUpdateBy = baseUpdateBy;
    }

    public String getBaseUpdateBy()
    {
        return baseUpdateBy;
    }
    public void setPkId(String pkId)
    {
        this.pkId = pkId;
    }

    public String getPkId()
    {
        return pkId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("baseId", getBaseId())
                .append("dailyPowerConsumption", getDailyPowerConsumption())
                .append("dayFlag", getDayFlag())
                .append("baseCerateTime", getBaseCreateTime())
                .append("baseCreateBy", getBaseCreateBy())
                .append("baseUpdateTime", getBaseUpdateTime())
                .append("baseUpdateBy", getBaseUpdateBy())
                .append("pkId", getPkId())
                .toString();
    }
}
